/**
 * @author truexin
 * @date   16/05/25
 */
(function (lf, r) {

    var RC = r.createClass,
        doAction = lf.bridgeJs.doAction;

    var IndexBody = RC({
        componentDidMount: function () {
            var $cancel = $(r.findDOMNode(this.refs.cancel));
            $cancel.on('tap', function (e) {
                doAction('yue-index.html', '约');
            });
            var $rice = $(r.findDOMNode(this.refs.rice));
            $rice.on('tap', function (e) {
                doAction('yue-rice-edit.html', '约饭发布详情页');
            });
        },
        render: function () {
            return (
                <div className="yue-release">
                    <div className="invite-page">
                        <h3 className="theme">邀请主题</h3>
                        <button type="button" ref="cancel">取&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;消</button>
                        <ul className="select-event">
                            <li ref="rice">
                                <span className="rice"></span>
                                <b>约饭</b>
                                <i></i>
                            </li>
                            <li><span className="run"></span><b>约跑</b><i></i></li>
                            <li><span className="walk"></span><b>约行走</b><i></i></li>
                            <li><span className="sea"></span><b>约出海</b><i></i></li>
                            <li><span className="sport"></span><b>约健身</b><i></i></li>
                            <li><span className="party"></span><b>约party</b><i></i></li>
                        </ul>
                    </div>
                </div>
            )
        }

    });

    r.render(
       //<PullRefresh data={<IndexBody />}/>,
        <IndexBody />,
        document.getElementById('root'), function () {

        }
    )

})(liefeng, React)
